const security_problem_web_sql_injection_union_low = {};
security_problem_web_sql_injection_union_low.base_url = ""
security_problem_web_sql_injection_union_low.action_url = "/security/problem/web/sql_injection/union/low"
security_problem_web_sql_injection_union_low.errorMessage = null

security_problem_web_sql_injection_union_low.send = function(url, data, callback) {
    let request = new XMLHttpRequest();
    request.onreadystatechange = function() {
        if (request.readyState === 4) {
            let result = null;
            if (request.status === 200) {
                result = request.responseText ? request.responseText : null;
                if (result.indexOf('errCode') != -1) {
                    if (security_flag.errorMessage) {
                        security_flag.errorMessage(result)
                    } else {
                        console.error(result);
                    }
                } else {
                    if (callback) {
                        callback(result);
                    }
                }
            } else {
                console.error(request);
            }
        }
    }
    request.open("POST", security_problem_web_sql_injection_union_low.base_url + security_problem_web_sql_injection_union_low.action_url + url, true);
    request.responseType = "text";
    request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
    request.send(data);
}

security_problem_web_sql_injection_union_low.description = function(callback) {
    let data = [];
    data.push("=" + );

    security_problem_web_sql_injection_union_low.send("/description", data.join("&"), callback);
}

security_problem_web_sql_injection_union_low.tips = function(callback) {
    let data = [];
    data.push("=" + );

    security_problem_web_sql_injection_union_low.send("/tips", data.join("&"), callback);
}

security_problem_web_sql_injection_union_low.writeUp = function(callback) {
    let data = [];
    data.push("=" + );

    security_problem_web_sql_injection_union_low.send("/writeUp", data.join("&"), callback);
}

security_problem_web_sql_injection_union_low.problem = function(id, callback) {
    let data = [];
    data.push("id=" + id);

    security_problem_web_sql_injection_union_low.send("/problem", data.join("&"), callback);
}
